<include file="common/fileinput"/>
<div class="col-xs-12">
	<div class="row">
		<form class="form-horizontal" role="form" id="form" action="{:U('Show/edit')}">
			<div class="form-group">
				<input type="hidden" name="id" value="{$data.id}">
				<include file="template:input" name="title" label="标题" value="{$data.title}"  attr='data-rule="required;length(~50)" maxlength="50"'/>
				<include file="template:number" name="sort" label="排序" value="{$data.sort}"  attr='data-rule="required;"'/>
				<include file="template:input" name="url" label="链接地址" value="{$data.url}"  attr='data-rule="required;length(~100)" maxlength="100"'/>
				<include file="template:singleImage" results="data" name="img" label="图片"/>
			</div>
			<div class="form-group" style="margin-top: 20px;">
				<include file="template:button" label="保存"/>
			</div>
		</form>
	</div>
</div>